package situ.autoweter.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * RD_ChangeValue实体类
 * 
 * @author 
 *
 */
public class RdChangevalue {
	/***/
	private Object ID; 
	/***/
	private java.time.Instant Datee; 
	/***/
	private Integer EmpID; 
	/***/
	private String UserNo; 
	/***/
	private Integer PreValue1; 
	/***/
	private Integer PreValue2; 
	/***/
	private String Remark;
	/**
	 * 高级查询日期之间的数据
	 */
    private java.util.Date date1;
	private java.util.Date date2;

	/**
	 * 实例化
	 */
	public RdChangevalue() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public RdChangevalue(JSONObject obj) {
		this();
		this.setID(obj.get("ID"));
		if (obj.get("Datee") instanceof java.time.Instant) {
			this.setDatee((java.time.Instant) obj.get("Datee"));
		}
		if (obj.get("EmpID") instanceof Number) {
			this.setEmpID(((Number) obj.get("EmpID")).intValue());
		}
		if (obj.get("UserNo") instanceof String) {
			this.setUserNo((String) obj.get("UserNo"));
		}
		if (obj.get("PreValue1") instanceof Number) {
			this.setPreValue1(((Number) obj.get("PreValue1")).intValue());
		}
		if (obj.get("PreValue2") instanceof Number) {
			this.setPreValue2(((Number) obj.get("PreValue2")).intValue());
		}
		if (obj.get("Remark") instanceof String) {
			this.setRemark((String) obj.get("Remark"));
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getID() != null) {
			result.put("ID",this.getID());
		}
		if (this.getDatee() != null) {
			result.put("Datee",this.getDatee());
		}
		if (this.getEmpID() != null) {
			result.put("EmpID",this.getEmpID());
		}
		if (this.getUserNo() != null) {
			result.put("UserNo",this.getUserNo());
		}
		if (this.getPreValue1() != null) {
			result.put("PreValue1",this.getPreValue1());
		}
		if (this.getPreValue2() != null) {
			result.put("PreValue2",this.getPreValue2());
		}
		if (this.getRemark() != null) {
			result.put("Remark",this.getRemark());
		}
		return result;
	}
	
	
	/**
	 * 获取ID
	 * 
	 * @return
	 */
	public Object getID() {
		return ID;
	}

	/**
	 * 设置ID
	 * 
	 * @param ID
	 */
	public void setID(Object ID) {
		this.ID = ID;
	}
	
	/**
	 * 获取Datee
	 * 
	 * @return
	 */
	public java.time.Instant getDatee() {
		return Datee;
	}

	/**
	 * 设置Datee
	 * 
	 * @param Datee
	 */
	public void setDatee(java.time.Instant Datee) {
		this.Datee = Datee;
	}
	
	/**
	 * 获取EmpID
	 * 
	 * @return
	 */
	public Integer getEmpID() {
		return EmpID;
	}

	/**
	 * 设置EmpID
	 * 
	 * @param EmpID
	 */
	public void setEmpID(Integer EmpID) {
		this.EmpID = EmpID;
	}
	
	/**
	 * 获取UserNo
	 * 
	 * @return
	 */
	public String getUserNo() {
		return UserNo;
	}

	/**
	 * 设置UserNo
	 * 
	 * @param UserNo
	 */
	public void setUserNo(String UserNo) {
		this.UserNo = UserNo;
	}
	
	/**
	 * 获取PreValue1
	 * 
	 * @return
	 */
	public Integer getPreValue1() {
		return PreValue1;
	}

	/**
	 * 设置PreValue1
	 * 
	 * @param PreValue1
	 */
	public void setPreValue1(Integer PreValue1) {
		this.PreValue1 = PreValue1;
	}
	
	/**
	 * 获取PreValue2
	 * 
	 * @return
	 */
	public Integer getPreValue2() {
		return PreValue2;
	}

	/**
	 * 设置PreValue2
	 * 
	 * @param PreValue2
	 */
	public void setPreValue2(Integer PreValue2) {
		this.PreValue2 = PreValue2;
	}
	
	/**
	 * 获取Remark
	 * 
	 * @return
	 */
	public String getRemark() {
		return Remark;
	}

	/**
	 * 设置Remark
	 * 
	 * @param Remark
	 */
	public void setRemark(String Remark) {
		this.Remark = Remark;
	}

	@Override
	public String toString() {
		return "RdChangevalue [ID=" + ID + " , Datee=" + Datee + " , EmpID=" + EmpID + " , UserNo=" + UserNo + " , PreValue1=" + PreValue1 + " , PreValue2=" + PreValue2 + " , Remark=" + Remark + "  ]";
	
	}

	public Date getDate1() {
		return date1;
	}

	public void setDate1(Date date1) {
		this.date1 = date1;
	}

	public Date getDate2() {
		return date2;
	}

	public void setDate2(Date date2) {
		this.date2 = date2;
	}
}
